package com.huiyeji.dynamic.core.bean;

import com.huiyeji.dynamic.core.annotations.*;

@DynamicBean("object")
public class DynamicObjects {

    @DynamicMethod
    public Boolean equals(Object s1, Object s2) {
        if (s1 == null && s2 == null){
            return true;
        }
        if (s1 == null){
            return false;
        }
        return s1.equals(s2);
    }

    @DynamicMethod
    public Boolean isNull(Object s1) {
        return s1 == null;
    }

    @DynamicMethod
    public Boolean notEquals(Object s1, Object s2) {
        return !equals(s1, s2);
    }
}
